﻿

CREATE function dbo.Format_Numeric
(@Num numeric(36,2))
RETURNS varchar(45) AS
BEGIN

DECLARE @Out varchar(128)

SET @Out = CONVERT(varchar(128),@Num)

SET @Out = RIGHT(@Out,2)

RETURN dbo.Format_Int(@Num) + ISNULL('.'+@Out,'')
END



